package com.zhida.jiyangcenter.api

import chooongg.base.manager.app
import chooongg.http.HttpManager
import com.zhida.jiyangcenter.DEFAULT_ROW
import com.zhida.jiyangcenter.utils.SP
import retrofit2.converter.gson.GsonConverterFactory
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST

interface APIFile {
    companion object {
        fun service() =
            HttpManager.create(app.applicationContext, "http://beauty.hebzd.com/api/file/") {
                addConverterFactory(GsonConverterFactory.create())
            }.getAPI(APIFile::class.java)
    }
    /**
     *档案首页
     */
    @POST("home")
    @FormUrlEncoded
    suspend fun home(
        @Field("key_id") key_id: String=SP.key_id.get().toString(),
        @Field("login_account") login_account: String=SP.account.get().toString()
    ): NetResponse<FileHomeEntity>

}